package com.kabuda.exception;

import lombok.Data;

/**
 * @author kabuda
 * @create 2023-10-17 22:49
 */
public enum MyState {
    SUCCESS(200,"响应成功"),
    PASSWORD_FAIL(100,"密码错误"),
    PARAMETER_FAIL(102,"参数错误")
    ;

    private int code;
        private String msg;

    MyState(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
